<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> 
<title>svg动画</title>
<style> 
div
{
	width:100px;
	height:100px;
	background:orangered;
	transition:width 3s;
	transition:height 3s
	-webkit-transition:width 2s; /* Safari */
	-webkit-transition:height 2s; /* Safari */
}

div:hover
{
	width:300px;
	height:200px;
	background: darkred;
}
</style>
</head>
<body>



<div></div>

<p>鼠标移动到 <b>方块</b>上</p>

</body>
</html>
